import {request} from '../../../util/promise';

// 获取最近两小时内新的openWo信息
export const getOpenWo = async (data) => {
    return await request('api/smx/New_Open_WO_information_by_last_2_hrs', 'POST', data);
};
 
// 获取未完成打开的Wo信息 这个好像没对应上
export const getNotOpenWo = async (data) => {
    return await request('smx/Open_WO_Qty', 'POST', data);
};

// 获取未完成打开的Wo信息图表
export const getNotOpenWoChart = async (data) => {
    return await request('smx/Open_WO_Qty_List', 'POST', data);
};

// 获取热门工单列表
export const getHotOrder = async (data) => {
    return await request('smx/Hot_site_Board', 'POST', data);
};

// 获取待批准备件列表
export const getPrepareOrder = async (data) => {
    return await request('api/smx/PRQ_pending_approve', 'POST', data);
};

// 紧急备件订单信息列表
export const getEmergencyr = async (data) => {
    return await request('smx/Critical_Urgent_part_request_delivery_status', 'POST', data);
};


// 备件订单信息 新
export const getLogistics = async (data) =>{
    return await request('smx/Critical_Urgent_part_request_delivery_status', 'POST', data);
}

export const getFlyLine = async (data) => {
    return await request('smx/fly_line', 'POST', data);
};